class A:
    def __init__(self, name, age, address):
        self.name = name
        self.age = age
        self.address = address

    def print_info(self) -> None:
        print(self.name, self.age, self.address)


class B(A):
    def __init__(self, name, age, address, id_card):
        super().__init__(name, age, address)
        self.idcard = id_card

    def print_info(self) -> None:
        print(self.name, self.age, self.address, self.idcard)


person = B('fzy', 18, '珠海市', 111)

if __name__ == "__main__":
    person.print_info()

